package com.ourteam.product.ui.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:09 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class ProductUITreeNode implements java.io.Serializable {

  public ProductUITreeNode() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long treeId;

  /** Attribute treeId Be Seted Falg */
  private boolean treeIdSetted = false;

  /** Attribute treeId is Null Falg */
  private boolean treeIdNull = false;

  /**
   * Get treeId
   *
   * @return long
   */
  public final long getTreeId() {

    return treeId;
  }

  /**
   * Set treeId
   *
   * @param long
   */
  public final void setTreeId(long treeId) {

    this.treeId = treeId;

    this.treeIdSetted = true;

    this.setTreeIdNull(false);
  }

  /**
   * Get treeId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isTreeIdSetted() {
    return this.treeIdSetted;
  }

  /** Set treeId Null */
  public final void setTreeIdNull() {

    this.treeIdNull = true;
  }

  public final void setTreeIdNull(boolean aNullFlag) {

    this.treeIdNull = aNullFlag;
  }

  public final boolean isTreeIdNull() {

    return this.treeIdNull;
  }

  private String code;

  /** Attribute code Be Seted Falg */
  private boolean codeSetted = false;

  /** Attribute code is Null Falg */
  private boolean codeNull = false;

  /**
   * Get code
   *
   * @return String
   */
  public final String getCode() {

    if (isCodeNull()) {
      return null;
    } else {
      return StringUtils.trim(code);
    }
  }

  /**
   * Set code
   *
   * @param String
   */
  public final void setCode(String code) {

    this.code = StringUtils.trim(code);

    this.codeSetted = true;

    this.setCodeNull(this.code == null);
  }

  /**
   * Get code Has Been Setted
   *
   * @return boolean
   */
  public final boolean isCodeSetted() {
    return this.codeSetted;
  }

  /** Set code Null */
  public final void setCodeNull() {

    this.codeNull = true;
  }

  public final void setCodeNull(boolean aNullFlag) {

    this.codeNull = aNullFlag;
  }

  public final boolean isCodeNull() {

    return this.codeNull;
  }

  private String title;

  /** Attribute title Be Seted Falg */
  private boolean titleSetted = false;

  /** Attribute title is Null Falg */
  private boolean titleNull = false;

  /**
   * Get title
   *
   * @return String
   */
  public final String getTitle() {

    if (isTitleNull()) {
      return null;
    } else {
      return StringUtils.trim(title);
    }
  }

  /**
   * Set title
   *
   * @param String
   */
  public final void setTitle(String title) {

    this.title = StringUtils.trim(title);

    this.titleSetted = true;

    this.setTitleNull(this.title == null);
  }

  /**
   * Get title Has Been Setted
   *
   * @return boolean
   */
  public final boolean isTitleSetted() {
    return this.titleSetted;
  }

  /** Set title Null */
  public final void setTitleNull() {

    this.titleNull = true;
  }

  public final void setTitleNull(boolean aNullFlag) {

    this.titleNull = aNullFlag;
  }

  public final boolean isTitleNull() {

    return this.titleNull;
  }

  private String titleKey;

  /** Attribute titleKey Be Seted Falg */
  private boolean titleKeySetted = false;

  /** Attribute titleKey is Null Falg */
  private boolean titleKeyNull = false;

  /**
   * Get titleKey
   *
   * @return String
   */
  public final String getTitleKey() {

    if (isTitleKeyNull()) {
      return null;
    } else {
      return StringUtils.trim(titleKey);
    }
  }

  /**
   * Set titleKey
   *
   * @param String
   */
  public final void setTitleKey(String titleKey) {

    this.titleKey = StringUtils.trim(titleKey);

    this.titleKeySetted = true;

    this.setTitleKeyNull(this.titleKey == null);
  }

  /**
   * Get titleKey Has Been Setted
   *
   * @return boolean
   */
  public final boolean isTitleKeySetted() {
    return this.titleKeySetted;
  }

  /** Set titleKey Null */
  public final void setTitleKeyNull() {

    this.titleKeyNull = true;
  }

  public final void setTitleKeyNull(boolean aNullFlag) {

    this.titleKeyNull = aNullFlag;
  }

  public final boolean isTitleKeyNull() {

    return this.titleKeyNull;
  }

  private String icon;

  /** Attribute icon Be Seted Falg */
  private boolean iconSetted = false;

  /** Attribute icon is Null Falg */
  private boolean iconNull = false;

  /**
   * Get icon
   *
   * @return String
   */
  public final String getIcon() {

    if (isIconNull()) {
      return null;
    } else {
      return StringUtils.trim(icon);
    }
  }

  /**
   * Set icon
   *
   * @param String
   */
  public final void setIcon(String icon) {

    this.icon = StringUtils.trim(icon);

    this.iconSetted = true;

    this.setIconNull(this.icon == null);
  }

  /**
   * Get icon Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIconSetted() {
    return this.iconSetted;
  }

  /** Set icon Null */
  public final void setIconNull() {

    this.iconNull = true;
  }

  public final void setIconNull(boolean aNullFlag) {

    this.iconNull = aNullFlag;
  }

  public final boolean isIconNull() {

    return this.iconNull;
  }

  private String isLeaf;

  /** Attribute isLeaf Be Seted Falg */
  private boolean isLeafSetted = false;

  /** Attribute isLeaf is Null Falg */
  private boolean isLeafNull = false;

  /**
   * Get isLeaf
   *
   * @return String
   */
  public final String getIsLeaf() {

    if (isIsLeafNull()) {
      return null;
    } else {
      return StringUtils.trim(isLeaf);
    }
  }

  /**
   * Set isLeaf
   *
   * @param String
   */
  public final void setIsLeaf(String isLeaf) {

    this.isLeaf = StringUtils.trim(isLeaf);

    this.isLeafSetted = true;

    this.setIsLeafNull(this.isLeaf == null);
  }

  /**
   * Get isLeaf Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIsLeafSetted() {
    return this.isLeafSetted;
  }

  /** Set isLeaf Null */
  public final void setIsLeafNull() {

    this.isLeafNull = true;
  }

  public final void setIsLeafNull(boolean aNullFlag) {

    this.isLeafNull = aNullFlag;
  }

  public final boolean isIsLeafNull() {

    return this.isLeafNull;
  }

  private String lastModifyUser;

  /** Attribute lastModifyUser Be Seted Falg */
  private boolean lastModifyUserSetted = false;

  /** Attribute lastModifyUser is Null Falg */
  private boolean lastModifyUserNull = false;

  /**
   * Get lastModifyUser
   *
   * @return String
   */
  public final String getLastModifyUser() {

    if (isLastModifyUserNull()) {
      return null;
    } else {
      return StringUtils.trim(lastModifyUser);
    }
  }

  /**
   * Set lastModifyUser
   *
   * @param String
   */
  public final void setLastModifyUser(String lastModifyUser) {

    this.lastModifyUser = StringUtils.trim(lastModifyUser);

    this.lastModifyUserSetted = true;

    this.setLastModifyUserNull(this.lastModifyUser == null);
  }

  /**
   * Get lastModifyUser Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifyUserSetted() {
    return this.lastModifyUserSetted;
  }

  /** Set lastModifyUser Null */
  public final void setLastModifyUserNull() {

    this.lastModifyUserNull = true;
  }

  public final void setLastModifyUserNull(boolean aNullFlag) {

    this.lastModifyUserNull = aNullFlag;
  }

  public final boolean isLastModifyUserNull() {

    return this.lastModifyUserNull;
  }

  private java.util.Date lastModifyTime;

  /** Attribute lastModifyTime Be Seted Falg */
  private boolean lastModifyTimeSetted = false;

  /** Attribute lastModifyTime is Null Falg */
  private boolean lastModifyTimeNull = false;

  /**
   * Get lastModifyTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getLastModifyTime() {

    return lastModifyTime;
  }

  /**
   * Set lastModifyTime
   *
   * @param java.util.Date
   */
  public final void setLastModifyTime(java.util.Date lastModifyTime) {

    this.lastModifyTime = lastModifyTime;

    this.lastModifyTimeSetted = true;

    this.setLastModifyTimeNull(this.lastModifyTime == null);
  }

  /**
   * Get lastModifyTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifyTimeSetted() {
    return this.lastModifyTimeSetted;
  }

  /** Set lastModifyTime Null */
  public final void setLastModifyTimeNull() {

    this.lastModifyTimeNull = true;
  }

  public final void setLastModifyTimeNull(boolean aNullFlag) {

    this.lastModifyTimeNull = aNullFlag;
  }

  public final boolean isLastModifyTimeNull() {

    return this.lastModifyTimeNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private String isRoot;

  /** Attribute isRoot Be Seted Falg */
  private boolean isRootSetted = false;

  /** Attribute isRoot is Null Falg */
  private boolean isRootNull = false;

  /**
   * Get isRoot
   *
   * @return String
   */
  public final String getIsRoot() {

    if (isIsRootNull()) {
      return null;
    } else {
      return StringUtils.trim(isRoot);
    }
  }

  /**
   * Set isRoot
   *
   * @param String
   */
  public final void setIsRoot(String isRoot) {

    this.isRoot = StringUtils.trim(isRoot);

    this.isRootSetted = true;

    this.setIsRootNull(this.isRoot == null);
  }

  /**
   * Get isRoot Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIsRootSetted() {
    return this.isRootSetted;
  }

  /** Set isRoot Null */
  public final void setIsRootNull() {

    this.isRootNull = true;
  }

  public final void setIsRootNull(boolean aNullFlag) {

    this.isRootNull = aNullFlag;
  }

  public final boolean isIsRootNull() {

    return this.isRootNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProductUITreeNode) == false) {
      return false;
    }
    ProductUITreeNode other = (ProductUITreeNode) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("treeId=");
    buffer.append(this.treeId);

    buffer.append("code=");
    buffer.append(this.code);

    buffer.append("title=");
    buffer.append(this.title);

    buffer.append("titleKey=");
    buffer.append(this.titleKey);

    buffer.append("icon=");
    buffer.append(this.icon);

    buffer.append("isLeaf=");
    buffer.append(this.isLeaf);

    buffer.append("lastModifyUser=");
    buffer.append(this.lastModifyUser);

    buffer.append("lastModifyTime=");
    buffer.append(this.lastModifyTime);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("isRoot=");
    buffer.append(this.isRoot);

    buffer.append("]");

    return buffer.toString();
  }
}
